//
//  RecommendCompanyCell.m
//  u76ho
//
//  Created by m-air-01 on 15/12/30.
//  Copyright © 2015年 LV. All rights reserved.
//

#import "RecommendCompanyCell.h"

@implementation RecommendCompanyCell

- (void)awakeFromNib {
    _headerImg.layer.masksToBounds = YES;
    _headerImg.layer.cornerRadius = 54/2;
    
    self.secondLab.text = @"";
    self.firstLab.text = @"";
    // Initialization code
}
-(void)setIsHiddenZP:(NSString *)isHiddenZP
{
    _isHiddenZP = isHiddenZP;
    _ZP.hidden = YES;
}
-(void)setHomePagecommendModel:(CommendCompanyModel *)HomePagecommendModel
{
    _HomePagecommendModel = HomePagecommendModel;
    [_headerImg sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",U76HOURL,HomePagecommendModel.ico]] placeholderImage:[UIImage imageNamed:@"发现－默认logo.png"]];
    _firstLab.text = HomePagecommendModel.companyname;
    _secondLab.text = [NSString stringWithFormat:@"%@ | %@ | %@",HomePagecommendModel.property,HomePagecommendModel.industry,HomePagecommendModel.person];
}

-(void)setScompaymodel:(SCompanyModel *)scompaymodel
{
    _scompaymodel = scompaymodel;
//    if (scompaymodel.ico) {
//        
    
        
    
    [_headerImg sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",U76HOURL,scompaymodel.ico]] placeholderImage:[UIImage imageNamed:@"发现－默认logo.png"]];
    _firstLab.text = scompaymodel.companyname;
    _secondLab.text = [NSString stringWithFormat:@"%@ | %@ | %@",scompaymodel.property,scompaymodel.industry,scompaymodel.person];
    NSLog(@"%@",_secondLab.text);
    
    
    
    _JuLiLabel.text = [NSString stringWithFormat:@"%@km  %@",scompaymodel.distance,scompaymodel.city];
    //_JuLiLabel.textColor = [UIColor colorWithRed:0.68 green:0.70 blue:0.71 alpha:1.00];
    _WeiZhiImageView.image = [UIImage imageNamed:@"位置图标"];
    
        
   // }
    if (scompaymodel.num && ![scompaymodel.num isEqualToString:@"0"]) {
        _ZP.hidden = NO;
    }
    else
    {
        _ZP.hidden = YES;
    }
}

-(void)setPositionlistmodel:(PositionDeliverListModel *)positionlistmodel
{
    _positionlistmodel = positionlistmodel;
    [_headerImg sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",U76HOURL,positionlistmodel.ico]] placeholderImage:[UIImage imageNamed:@"发现－默认logo.png"]];
    _firstLab.text = positionlistmodel.companyname;
    _secondLab.text = [NSString stringWithFormat:@"%@ | %@ | %@",positionlistmodel.industry,positionlistmodel.fince,positionlistmodel.person];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
